package grammar

/**
 * @author ljfirst
 * @version V1.0
 * @date 2023/7/15 12:52
 * @author-Email ljfirst@mail.ustc.edu.cn
 * @blogURL https://blog.csdn.net/ljfirst
 * @description
 **/
// 移除数组的第一个元素
func arrayCopy() {
	numFree := 8
	db := &db1{}
	copy(db.freeConn, db.freeConn[1:])
	db.freeConn = db.freeConn[:numFree-1]
}

type db1 struct {
	freeConn []int
}


//  grammar范型 : https://blog.csdn.net/nihaihaoma/article/details/125601630